<template>
  <div class="hello">
    <button @click="alertFn">{{title}}</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    title: {
      type: String,
      default: '按钮'
    }
  },
  methods: {
    alertFn () {
      alert('Hello World!!!')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
button{
  width: 220px;
  height: 60px;
  background: #e05728;
  border-radius: 10px;
  font-size: 24px;
  color: #fff;
  border: none;
  outline: none;
}

button:active{
  outline: none;
  background: rgba(0,0,0,0.5);
}
</style>
